﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EasyMvcBlog.Data;
using FluentNHibernate.Mapping;

namespace EasyMvcBlog.Infrastructure.Repository.DataMap
{
    public class SoftwareUseMap : ClassMap<SoftwareUse>
    {
        public SoftwareUseMap()
        {
            Id(m => m.Id).GeneratedBy.Identity();
            Map(m => m.SoftwareName);
            Map(m => m.ComputerMac);
            Map(m => m.ComputerName);
            Map(m => m.LastUseTime);
            Map(m => m.TotalUseCount).Default("0");

        }
    }
}
